package com.inxedu.os.edu.dao;

import com.inxedu.os.edu.pojo.EduStatisticsDay;
import com.inxedu.os.edu.pojo.EduUserLoginLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SystemStatisticsMapper {
    List<EduStatisticsDay> selectLoginNumBefore(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<EduStatisticsDay> selectRegisteredNumBefore(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<EduStatisticsDay> selectVideoVieWingNumBefore(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<EduStatisticsDay> selectDailyUserNumberBefore(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<EduStatisticsDay> selectDailyCourseNumberBefore(@Param("startDate") String startDate, @Param("endDate") String endDate);
    List<EduUserLoginLog> selectUserLoginToDay();
    int insertStatisticsOneDay(EduStatisticsDay eduStatisticsDay);
    int deleteStatisticsOneDay(@Param("time") String time);
    int selectExit(@Param("time") String time);
    int updateStatistics(EduStatisticsDay eduStatisticsDay);
}
